home *** CD-ROM | disk | FTP | other *** search
/ TPUG - Toronto PET Users Group / TPUG Users Group CD / TPUG Users Group CD.iso / AMIGA / (A)P / (A)P1.ADF / life / POSTER < prev    next >
Text File  |  1987-05-25  |  2KB  |  38 lines

  1. Article 3851 of net.micro.amiga:
  2. Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site well.UUCP
  3. Path: well!ptsfa!lll-lcc!lll-crg!nike!oliveb!glacier!navajo!rokicki
  4. From: rokicki@navajo.STANFORD.EDU (Tomas Rokicki)
  5. Newsgroups: net.micro.amiga
  6. Subject: Direct blitter access
  7. Message-ID: <780@navajo.STANFORD.EDU>
  8. Date: 7 Aug 86 07:48:02 GMT
  9. Date-Received: 8 Aug 86 10:16:24 GMT
  10. Organization: Stanford University
  11. Lines: 450
  12.  
  13. [ Blitter away your life ]
  14.  
  15. Here's some code I wrote to access and test the blitter.
  16. The blit routines are isolated in a short file; the test
  17. routines, which execute John Conway's cellular automata
  18. game of LIFE, follow.  Read the comments for more information.
  19.  
  20. About the game of LIFE:  This program executes LIFE in a
  21. 318 by 188 display at 19.8 generations per second.
  22. It starts with an `r' pentimino in the center of the screen,
  23. and adds a cell at a random location for each generation.
  24. To run, just type life.  With no arguments, it runs in one
  25. bit plane; otherwise, the argument is the number of bit
  26. planes to use.  (The top bit plane is the most recent
  27. generation; the next is the next most recent generation, etc.)
  28. To exit (and this is a kludge), move the mouse to the left
  29. of the screen and slowly drag it around the vertical center
  30. (you need to hit coordinates (0,100) exactly).
  31.  
  32. The program is entertaining if unusable; if anyone adds
  33. user interaction, please let me know.
  34.  
  35. The following are the four files, separated by ------cut here------.
  36. They compile under Manx 3.20; simple mods for Lattice.
  37.  
  38.